3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to manage shadow-receiving styles.
You can use the Q3ReceiveShadowsStyle_New function to create a new shadow-receiving style object.
TQ3StyleObject Q3ReceiveShadowsStyle_New (TQ3Boolean receives);
The Q3ReceiveShadowsStyle_New function returns, as its function result, a new style object having the shadow-receiving style specified by the receives parameter.
If a new style object could not be created, Q3ReceiveShadowsStyle_New returns the value NULL .
To change the current shadow-receiving style, you must actually draw the style object. You can call Q3Style_Submit to draw the style in retained mode or Q3ReceiveShadowsStyle_Submit (described next) to draw the style in immediate mode.
See "Shadow-Receiving Styles" for a description of shadow-receiving styles.
You can use the Q3ReceiveShadowsStyle_Submit function to submit a shadow-receiving style in immediate mode.
TQ3Status Q3ReceiveShadowsStyle_Submit (
TQ3Boolean receives,
TQ3ViewObject view);
You can use the Q3ReceiveShadowsStyle_Get function to get the shadow-receiving style value of a shadow-receiving style.
TQ3Status Q3ReceiveShadowsStyle_Get (
TQ3StyleObject styleObject,
TQ3Boolean *receives);
You can use the Q3ReceiveShadowsStyle_Set function to set the shadow-receiving style value of a shadow-receiving style.
TQ3Status Q3ReceiveShadowsStyle_Set (
TQ3StyleObject styleObject,
TQ3Boolean receives);
Previous | QD3D Book | Overview | Chapter Contents | Next |